<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播案例</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .swiper-container{
            margin: 0 auto;
            width: 750px;
            height: 420px;
            overflow: hidden;
        }
        .swiper-wrapper{
            width: 9999px;
            animation: aaa 5s ease infinite;
            
        }
        .swiper-wrapper:hover{
            animation-play-state: paused;
        }
        .swiper-wrapper img{
            width: 750px;
            height: 420px;
            display: block;
            float: left;
        }
        @keyframes aaa{
            0%{
                transform: translateX(0);
            }
            10%{
                transform: translateX(-750px);
            }
            30%{
                transform: translateX(-750px);
            }
            45%{
                transform: translateX(-1500px);
            }
            50%{
                transform: translateX(-1500px);
            }
            65%{
                transform: translateX(-2250px);
            }
            75%{
                transform: translateX(-2250px);
            }
            90%{
                transform: translateX(-3000px);
            }
            100%{
                transform: translateX(-3000px);
            }
        }
    </style>
</head>
<body>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <img src="./image/轮播/1.jpg" alt="" class="">
            <img src="./image/轮播/2.jpg" alt="" class="">
            <img src="./image/轮播/3.jpg" alt="" class="">
            <img src="./image/轮播/4.jpg" alt="" class="">
            <img src="./image/轮播/1.jpg" alt="" class="">
        </div>
    </div>
</body>
</html>